package entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @Author 爱吃豆的土豆、
 * @Date 2023/4/7 11:18
 */
@Document("tb_person")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Person {
    @Id
    private ObjectId id;
    @Field("myname")
    private String myname;
    @Field("age")
    private int age;
    @Field("address")
    private String address;
}
